package lab02.test33;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
 * Created by dell on 2017/11/15.
 */
public class Test {
    public static void main(String[] args) {
   String[] strArray=new String[]{"hello","echo","like","you","i"};
   List list= Arrays.asList(strArray);
        System.out.println("Before sorted:"+list);
        Collections.sort(list,String.CASE_INSENSITIVE_ORDER);//根据字母顺序排序
        System.out.println("After sorted:"+list);
    }
}
